package com.killer.factory;

/**
 * 顶级工厂接口
 */
public interface BeanFactory {

    /**
     * 根据名称(id)获取bean
     * @param name
     * @param <T>
     * @return
     */
    public Object getBean(String name) throws Exception;

    /**
     * 根据类的全限定名小写作id获取bean
     * @param classType
     * @param <T>
     * @return
     * @throws Exception
     */
    public <T> T getBean(Class<T> classType) throws Exception;
}
